package com.xyrl.project.common.salesman.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xyrl.common.base.exception.XyrlException;
import com.xyrl.project.common.salesman.vo.UserLoginVo;
import com.xyrl.project.common.system.entity.LoginLog;
import com.xyrl.project.common.system.entity.User;
import com.xyrl.project.common.system.vo.UserVo;

/**
 * @className SalesmanService
 * @company 星纭融链科技服务有限公司
 * @author 徐恩源
 * @version 1.0
 * @date 2019-12-27 15:39:59
 * @Description 客户经理
 */
public interface SalesmanService extends IService<User> {
    /**
     * 根据账号查询用户
     * @author 徐恩源
     * @date 2019-12-27 15:45:03
     * @param username
     */
    User findByName(String username);
    /**
     * 用户登录
     * @author 徐恩源
     * @date 2019-12-27 14:29:20
     * @param userLoginVo
     */
    UserVo loginBySales(UserLoginVo userLoginVo)throws XyrlException;
}
